package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.system.entity.DingdingDayRequest;
import cn.stylefeng.guns.sys.modular.system.model.params.DingdingDayRequestParam;
import cn.stylefeng.guns.sys.modular.system.model.result.DingdingDayRequestResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 钉钉，人员申请单，请假、外出的表单 服务类
 * </p>
 *
 * @author zxd
 * @since 2022-03-10
 */
public interface DingdingDayRequestService extends IService<DingdingDayRequest> {

    /**
     * 新增
     *
     * @author zxd
     * @Date 2022-03-10
     */
    void add(DingdingDayRequestParam param);

    /**
     * 删除
     *
     * @author zxd
     * @Date 2022-03-10
     */
    void delete(DingdingDayRequestParam param);

    /**
     * 更新
     *
     * @author zxd
     * @Date 2022-03-10
     */
    void update(DingdingDayRequestParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zxd
     * @Date 2022-03-10
     */
    DingdingDayRequestResult findBySpec(DingdingDayRequestParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zxd
     * @Date 2022-03-10
     */
    List<DingdingDayRequestResult> findListBySpec(DingdingDayRequestParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zxd
     * @Date 2022-03-10
     */
     LayuiPageInfo findPageBySpec(DingdingDayRequestParam param);

    /**
     * 批量插入
     *
     * @author zxd
     * @Date 2022-03-11
     */
    void batchInsert(List list);
}
